package cn.edu.neusoft.yuejian.model;

import cn.edu.neusoft.yuejian.service.syservice;
import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by Administrator on 2017/9/18.
 */

public class yuemodel {
    private Retrofit retrofit;
    public yuemodel(){
        retrofit=new Retrofit.Builder()
                .baseUrl("http://172.24.10.175/")
                .addConverterFactory(GsonConverterFactory.create())
                .build();

    }
    public Call getactivitylist(){
       syservice syService = retrofit.create(syservice.class);
        return syService.getactivitylist();
    }
    public Call getactivitybyId(String id){
        syservice syService = retrofit.create(syservice.class);
        return syService.getactivitybyId(id);
    }
    public Call getmasterlist(){
        syservice syService = retrofit.create(syservice.class);
        return syService.getmasterlist();
    }
    public Call getcontestlist(){
        syservice syService = retrofit.create(syservice.class);
        return syService.getcontestlist();
    }
}
